package com.gxa.admin;



import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import org.springframework.boot.autoconfigure.domain.EntityScan;
//import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
//import springfox.documentation.oas.annotations.EnableOpenApi;
import springfox.documentation.oas.annotations.EnableOpenApi;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
//因为在BaseService中依赖了Mapper<T>,必须用tk的MapperScan
@org.mybatis.spring.annotation.MapperScan(basePackages = "com.gxa.admin.mapper")
@MapperScan("com.gxa.admin.mapper")
@EnableOpenApi
//@EntityScan({"com.gxa.admin.entity"})
//@EnableJpaRepositories(basePackages = "com.gxa.admin.repository")
public class AdminApp {

    public static void main(String[] args) {
        SpringApplication.run(AdminApp.class, args);
    }

}
